﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite
{
    class ColumnAffinityType
    {
        /*
** Column affinity types.
**
** These used to have mnemonic name like 'i' for ColumnAffinityType.SQLITE_AFF_INTEGER and
** 't' for ColumnAffinityType.SQLITE_AFF_TEXT.  But we can save a little space and improve
** the speed a little by numbering the values consecutively.
**
** But rather than start with 0 or 1, we begin with 'a'.  That way,
** when multiple affinity types are concatenated into a string and
** used as the P4 operand, they will be more readable.
**
** Note also that the numeric types are grouped together so that testing
** for a numeric type is a single comparison.
*/
        public const char SQLITE_AFF_TEXT = 'a'; //#define ColumnAffinityType.SQLITE_AFF_TEXT     'a'
        public const char SQLITE_AFF_NONE = 'b'; //#define ColumnAffinityType.SQLITE_AFF_NONE     'b'
        public const char SQLITE_AFF_NUMERIC = 'c'; //#define ColumnAffinityType.SQLITE_AFF_NUMERIC  'c'
        public const char SQLITE_AFF_INTEGER = 'd'; //#define ColumnAffinityType.SQLITE_AFF_INTEGER  'd'
        public const char SQLITE_AFF_REAL = 'e'; //#define ColumnAffinityType.SQLITE_AFF_REAL     'e'
    }
}
